<%-- 
    Document   : cardBlacklist
    Created on : Oct 27, 2011, 7:06:46 PM
    Author     : Tunp
--%>

<%@ include file="/WEB-INF/jsp/include.jsp" %> 
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>list black Card</title>
    </head>
    <body>
        <h1>Card black list:</h1>
        <form:form method="POST" >
         <select name="search_col">
                <option value="cardnumber">Card number</option>
                <option value="merchant">Merchant</option>
        </select>
        <input type="text" id="search" name="search_text" maxlength="100"/>
        <input type="submit" value="Search"></input>
        <table style="border: solid chocolate">
            <tr>
                <th>
                    <b>Id </b>
                </th>
                <th>
                    <b>Card number</b>
                </th>
                <th>
                    <b>Merchant</b>
                </th>
                <th>
                    <b>Expiry Month</b>
                </th>
                <th>
                    <b>Expiry Year</b>
                </th>
                <th>
                </th>
            </tr>
            <c:forEach var="Cardblack" items="${listBlackCard}" >
                <tr>
                    <td>
                        <c:out value="${Cardblack.id}"></c:out>
                    </td>
                    <td>
                        <c:out value="${Cardblack.cardnumber}"></c:out>
                    </td>
                    <td>
                       <c:out value="${Cardblack.merchant.merchantName}"></c:out> 
                    </td>
                    <td>
                        <c:out value="${Cardblack.expiryMonth}"></c:out>
                    </td>
                    <td>
                        <c:out value="${Cardblack.expiryYear}"></c:out>
                    </td>
                    <td>
                        <a href="cardblacklist.htm?blackIdremove=${Cardblack.id}"><b> Remove </b> </a>
                    </td>
                </tr>
                </option>
            </c:forEach>
                <tr>
                    <td colspan="6">
                        <a href="addcard.htm"><b> Create new black card </b> </a>
                    </td>
                </tr>
        </table>
        <a href="index.htm"><b> Back to index </b> </a>
        </form:form>
    </body>
</html>
